import dayjs from 'dayjs'

export const column = [
  {
    title: 'Client Name',
    dataIndex: 'clientName',
    key: 'clientName'
  },
  {
    title: 'Commission Factor',
    dataIndex: 'priceCoefficient',
    key: 'priceCoefficient'
  },
  {
    title: 'Initial Date',
    dataIndex: 'beginCooperate',
    key: 'beginCooperate',
    customRender: ({ text }) => (text ? dayjs(text).format('MM/DD/YYYY') : '--')
  },
  {
    title: 'Takeover Date',
    dataIndex: 'firstProjectDate',
    key: 'firstProjectDate',
    customRender: ({ text }) => (text ? dayjs(text).format('MM/DD/YYYY') : '--')
  },
  {
    title: 'Commission Percentage',
    dataIndex: 'salesRule',
    key: 'salesRule',
    customRender: ({ text }) => text * 100 + '%'
  }
]
